package dwz.cms.article.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dwz.persistence.beans.CmsChannel;
import dwz.persistence.mapper.CmsChannelMapper;
/** 
* Created by Eclipse
* @author : Yating
* @version:2017年3月23日 下午4:16:53 
* 类说明 
*/
@Service("channelService")
public class ChannelService implements IChannelService {

	@Resource
	CmsChannelMapper cmsChannelMapper;
	
	@Override
	public List<CmsChannel> getChannelList(){
		
		// 获取菜单栏中的频道列表(返回id,fatherid,title字段)
		return cmsChannelMapper.selectMenuChannelList();
	}
	
	@Override
	public List<CmsChannel> selectChannelAll(){
		
		// 获取菜单栏中的频道列表(返回id,fatherid,title字段)
		return cmsChannelMapper.selectChannelAll();
	}
	
	@Override
	public List<CmsChannel> selectChannelisNotFirst(){
		
		// 获取菜单栏中的频道列表(返回id,fatherid,title字段)
		return cmsChannelMapper.selectChannelisNotFirst();
	}
	
	@Override
	public List<CmsChannel> selectChannelisFirst(){
		
		// 获取菜单栏中的频道列表(返回id,fatherid,title字段)
		return cmsChannelMapper.selectChannelisFirst();
	}
}
 